using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace Microsoft.CommerceServer.SecureSite
{
	public class Welcome : Microsoft.CommerceServer.SecureSite.Wizard
	{
		private System.Windows.Forms.Panel pnlWelcome;
		private System.Windows.Forms.Label lblWelcome;
		private System.Windows.Forms.Label label1;
		private System.ComponentModel.IContainer components = null;

		public Welcome()
		{
			InitializeComponent();
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.Load += new System.EventHandler(this.Welcome_Load);
		}
		#endregion

		private void Welcome_Load(object sender, System.EventArgs e)
		{
			this.pnlWelcome = new System.Windows.Forms.Panel();
			this.lblWelcome = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.pnlWelcome.SuspendLayout();
			this.SuspendLayout();
			// 
			// btnNext
			// 
			this.btnNext.Name = "btnNext";
			this.btnNext.Click += new System.EventHandler(this.btnNext_Click);
			// 
			// btnPrevious
			// 
			this.btnPrevious.Name = "btnPrevious";
			// 
			// pnlWelcome
			// 
			this.pnlWelcome.Controls.Add(this.lblWelcome);
			this.pnlWelcome.Dock = System.Windows.Forms.DockStyle.Fill;
			this.pnlWelcome.Location = new System.Drawing.Point(0, 72);
			this.pnlWelcome.Name = "pnlWelcome";
			this.pnlWelcome.Size = new System.Drawing.Size(552, 262);
			this.pnlWelcome.TabIndex = 4;
			// 
			// lblWelcome
			// 
			this.lblWelcome.Location = new System.Drawing.Point(40, 16);
			this.lblWelcome.Name = "lblWelcome";
			this.lblWelcome.Size = new System.Drawing.Size(472, 192);
			this.lblWelcome.TabIndex = 0;
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(0, 0);
			this.label1.Name = "label1";
			this.label1.TabIndex = 0;
			// 
			// Welcome
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(552, 374);
			this.Controls.Add(this.pnlWelcome);
			this.Name = "Welcome";
			this.Controls.SetChildIndex(this.pnlWelcome, 0);
			this.pnlWelcome.ResumeLayout(false);
			this.ResumeLayout(false);

			CommerceSecurityInfo.Log("FORM: Welcome form loaded");
			base.Title = "Commerce Server Security";
            this.lblWelcome.Text += "Secure Commerce Server 2007 Wizard will guide you through the steps necessary to secure your Commerce Site:";
            this.lblWelcome.Text += "";
            this.lblWelcome.Text += "\r\n\r\nThis security wizard will:\r\n\r\n   ";
            this.lblWelcome.Text += "- Create a new or add existing user to your site \r\n   ";
            this.lblWelcome.Text += "- Add the user into IIS Application Pools into Commerce Site and it's Web Services. \r\n   ";
            this.lblWelcome.Text += "- Add the user into approperiate Commerce Server DB roles including Data Warehouse\r\n   ";
            this.lblWelcome.Text += "- Add the user into all Commerce Web Services Authorization policy";
            this.lblWelcome.Text += "";
            this.lblWelcome.Text += "";
            this.lblWelcome.Text += "\r\n\r\nClick the Next button to continue.";
			this.btnPrevious.Visible = false;
		}

		protected override void btnNext_Click(object sender, System.EventArgs e)
		{
			CommerceSecurityInfo.MoveToForm("CommerceSite");
			base.Visible = false;
		}
	}
}

